package com.elephantgreen.common;

/**
 * This object is used in two occasions.
 * 
 * 1. Store cheque details for each {@link ClientTransaction}. Every un-realized cheque
 * will have a {@link ChequeDetails} object within the corresponding {@link ClientTransaction}
 * 
 * 2. Store data for newly created cheques. (For example when the system receives a new cheque from 
 * the client)
 * 
 * @author Shaminda Samaratunge
 *
 */
public class ChequeDetails extends ElephantgreenCommon {
	
	private String chequeNumber;
	private String bankName;
	private String branchName;
	private String dueDate;
	private String chequeAmount;
	private String chequeStatus;
	
	
	/**
	 * Constructor to create a new ChequeDetails object.
	 * 
	 * @param chequeNumber Given cheque number
	 * @param bankName Name of the bank the cheque has been issued
	 * @param branchName Name of the bank branch
	 * @param dueDate Due date of the cheque
	 * @param chequeAmount The amount specified in the cheque
	 * @param chequeStatus Satus of the cheque, ie. NEW, BOUNCED, REJECTED, etc
	 */
	public ChequeDetails(String chequeNumber, String bankName,
			String branchName, String dueDate, String chequeAmount,
			String chequeStatus) {
		super();
		this.chequeNumber = chequeNumber;
		this.bankName = bankName;
		this.branchName = branchName;
		this.dueDate = dueDate;
		this.chequeAmount = chequeAmount;
		this.chequeStatus = chequeStatus;
	}
	
	
	
	@Override
	public String toString() {
		return "ChequeDetails [chequeNumber=" + chequeNumber + ", bankName="
				+ bankName + ", branchName=" + branchName + ", dueDate="
				+ dueDate + ", chequeAmount=" + chequeAmount
				+ ", chequeStatus=" + chequeStatus + "]";
	}



	public void setChequeNumber(String chequeNumber) {
		this.chequeNumber = chequeNumber;
	}
	public String getChequeNumber() {
		return chequeNumber;
	}
	
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getBankName() {
		return bankName;
	}
	
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}
	public String getBranchName() {
		return branchName;
	}
	
	public void setDueDate(String dueDate) {
		this.dueDate = dueDate;
	}
	public String getDueDate() {
		return dueDate;
	}
	
	public void setChequeAmount(String chequeAmount) {
		this.chequeAmount = chequeAmount;
	}
	
	public String getChequeAmount() {
		return chequeAmount;
	}
	public void setChequeStatus(String chequeStatus) {
		this.chequeStatus = chequeStatus;
	}
	public String getChequeStatus() {
		return chequeStatus;
	}

	
	
}
